package it.polimi.swimv2.session;

import it.polimi.swimv2.entities.User;

import java.util.Collection;

import javax.ejb.Local;

@Local
public interface FriendsManagerLocal {
	/**
	 * Returns the friends of the specified user.
	 * 
	 * @param username
	 * @return a collection of friends
	 */
	public Collection<User> getFriendsOf(String username);

	/**
	 * Returns true if the two users are friends, otherwise false. If a
	 * parameter is null it returns false.
	 * 
	 * @param u1
	 * @param u2
	 * @return true if u1 and u2 are friends.
	 */
	public boolean areFriends(User u1, User u2);

}